package com.dgut.legalservice.service;

import com.dgut.legalservice.domain.Approval;
import com.dgut.legalservice.domain.Order;
import com.dgut.legalservice.domain.OrderVo;

import java.util.List;

public interface OrderService {

    /**
     * 下订单
     * @param order
     * @param productId
     * @return
     */
    public List<Integer> addOrder(Order order, String productId);

    /**
     * 查询所有订单
     * @return
     */
    public List<Order> selectOrders(OrderVo orderVo);

    /**
     * 下订单
     * @param id
     * @return
     */
    public int payFir(Integer id,String payStatus);

    /**
     * 增加或更新审核数据审核数据
     * @param order
     * @param orderId
     * @return
     */
    public int setFirStatus(Order order, Integer orderId);

    /**
     * 取消订单
     * @param orderId
     * @return
     */
    public int deleteOrder(Integer orderId);
}
